package com.demo.design01.service;

import com.alibaba.fastjson.JSON;
import com.demo.design01.mq.OrderMq;

/**
 * @author ytj
 * @date 2022/2/21
 */
public class OrderMqService {

    public void onmessage(String message){
        OrderMq mq= JSON.parseObject(message,OrderMq.class);
        mq.getOrderId();
    }
}
